#include <stdio.h>
#include <stdlib.h>
#include "coid/svc/coidsvc.h"
//{client 
#define master_address_1 "10.0.0.5:4444"
#define master_address_2 "10.0.1.5:4444"
#define slave_address_1 "10.0.0.11:4444"
#define slave_address_2 "10.0.1.3:4444"
#include "coid/comm/binstream/stlstream.h"
//}client 
#include "../Slave/client/slave_client.h"

class CMaster
{
public:
   cmd_interface* cmdin;
   charstr srvaddr;
   CMaster(void);
   ~CMaster();
   // Here we put the things from constructor
   net_fnc_s opcd accept_connect();
   net_fnc_s opcd accept_connect_shared();
   net_fnc_s opcd accept_startup_params( cmd_interface& cmd );
   // Called by outside world (main thread) to send message to us
   net_fnc net_nolock opcd insertMasterMessage(net_in int value);
private:
   CSlave_client* sLeft;
   CSlave_client* sRight;
};

